package com.coment.enums;

import lombok.Generated;

public enum Camp {
   one("1"),
   two("2"),
   three(""),
   four(""),
   five("");

   private final String value;

   Camp(String value) {
      this.value = value;
   }

   public static Camp fromValue(String value) {
      for(Camp type : values()) {
         if (type.getValue().equals(value)) {
            return type;
         }
      }

      throw new IllegalArgumentException("未知的消息类型: " + value);
   }

   
   public String getValue() {
      return this.value;
   }

   // $FF: synthetic method
   private static Camp[] $values() {
      return new Camp[]{one, two, three, four, five};
   }
}
